package com.woniuxy.ptapp.client;

import com.woniuxy.commons.util.Result;
import com.woniuxy.ptapp.client.param.AddClassScheduleParam;
import com.woniuxy.ptapp.client.param.ClassesParam;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;
@Component
@FeignClient(value = "yoga-pt",path="/pt",contextId ="ClassesCoachClient")
@Api(tags = "教练课程中间表接口")
public interface ClassesCoachClient {
    @ApiOperation("添加教练课程(暂时不用了)")
    @GetMapping("/addClassesCoach")
    public Result addClassesCoach(@RequestParam Integer coachId, @RequestParam Integer ClassesId);

    @ApiOperation("新增课程表(场馆)")
    @PostMapping("/addClassSchedule")
    public Result addClassSchedule(@RequestBody AddClassScheduleParam addClassScheduleParam );
}
